home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- dialog \
- --title "SELECT BLOCK SIZE" \
- --menu "\n\
- Smaller block size means less wasted space \n\
- (and longer file reads). \n\
- Larger block size means more wasted space \n\
- (and faster file reads). \n\
- Unix standard is to use 1024 bytes which is \n\
- a good compromise between space and performance." \
- 18 65 3 \
- "512" "Better disk space utilization" \
- "1024" "Standard for Unix systems" \
- "2048" "Faster file access" \
- 2> /tmp/Fblock_size
-
- BLOCK_SIZE="`cat /tmp/Fblock_size`"
- rm -f /tmp/Fblock_size
-
- if [ ! "$BLOCK_SIZE" = "2048" -a ! "$BLOCK_SIZE" = "1024" ]; then
- BLOCK_SIZE=512
- fi
-
- echo "BLOCK_SIZE: $BLOCK_SIZE bytes."
-
-
-